import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/layout',
    name: 'layout',
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/home/index.vue'),
      },
      {
        path: '/seat',
        name: 'seat',
        component: () => import('@/views/seat/index.vue'),
      },
      {
        path: '/meeting-data',
        name: 'meeting',
        component: () => import('@/views/meetingData/index.vue'),
      }

    ]
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
